package com.iwhalecloud.citybrain.flow.platform.manager.domain.model;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

/**
 * @author lilh
 * @date 2020/11/2 10:20
 */
@Data
public class FlowProcessInstanceOperateTraceVo implements Serializable {
    private static final long serialVersionUID = 3572452578276657113L;

    /**
     * id
     */
    private String id;

    /**
     * 操作类型
     */
    private String action;

    /**
     * 任务id
     */
    private String taskId;

    /**
     * 流程实例id
     */
    private String processInstanceId;

    /**
     * 操作人id
     */
    private String operatorId;

    /**
     * 操作人
     */
    private String operator;

    /**
     * 操作描述
     */
    private String message;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    public FlowProcessInstanceOperateTraceVo(){

    }
    public FlowProcessInstanceOperateTraceVo(String action,String processInstanceId,String taskId,String operatorId,String operator,String message){       
        this.action=action;
        this.processInstanceId=processInstanceId;
        this.message=message;
        this.operatorId=operatorId;
        this.operator=operator;
        this.taskId=taskId;
        this.createTime=new Date();
    }
}
